package cn.stylefeng.guns.modular.hx.storage.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 库存表
 * </p>
 * @author zhucx
 * @since 2023-08-15
 */
@Data
@TableName("hx_storage_stock")
public class HxStorageStock implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 状态（正常、集货）
     */
    @TableField("stock_state")
    private String stockState;

    /**
     * 分公司id
     */
    @TableField("operate_id")
    private Long operateId;

    /**
     * 项目名称
     */
    @TableField("operate_name")
    private String operateName;

    /**
     * 客户id
     */
    @TableField("customer_id")
    private Long customerId;

    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;

    /**
     * 仓库id
     */
    @TableField("warehouse_id")
    private Long warehouseId;

    /**
     * 仓库名称
     */
    @TableField("warehouse_name")
    private String warehouseName;

    /**
     * 库区id
     */
    @TableField("area_id")
    private Long areaId;

    /**
     * 库区名称
     */
    @TableField("area_name")
    private String areaName;

    /**
     * 库区编号
     */
    @TableField("area_number")
    private String areaNumber;

    /**
     * 库位id
     */
    @TableField("position_id")
    private Long positionId;

    /**
     * 库位编号
     */
    @TableField("position_number")
    private String positionNumber;
    
    /**
     * 库位类型
     */
    @TableField("position_type")
    private String positionType;

    /**
     * 托盘id
     */
    @TableField("tray_id")
    private Long trayId;

    /**
     * 托盘编号
     */
    @TableField("tray_number")
    private String trayNumber;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 商品码
     */
    @TableField("goods_pcode69")
    private String goodsPcode69;

    /**
     * 规格
     */
    @TableField("goods_specs")
    private String goodsSpecs;

    /**
     * 分类
     */
    @TableField("goods_bigtype")
    private String goodsBigtype;

    /**
     * 分类id
     */
    @TableField("goods_bigtype_id")
    private Long goodsBigtypeId;

    /**
     * 基本单位
     */
    @TableField("jiben_unit")
    private String jibenUnit;

    /**
     * 库存单位
     */
    @TableField("kc_unit")
    private String kcUnit;

    /**
     * 库存换算率
     */
    @TableField("kc_rate")
    private String kcRate;

    /**
     * 库存数量
     */
    @TableField("kc_num")
    private String kcNum;

    /**
     * 采购单位
     */
    @TableField("cg_unit")
    private String cgUnit;

    /**
     * 采购换算率
     */
    @TableField("cg_rate")
    private String cgRate;

    /**
     * 批发单位
     */
    @TableField("pf_unit")
    private String pfUnit;

    /**
     * 批发换算率
     */
    @TableField("pf_rate")
    private String pfRate;

    /**
     * 配送单位
     */
    @TableField("ps_unit")
    private String psUnit;

    /**
     * 配送换算率
     */
    @TableField("ps_rate")
    private String psRate;

    /**
     * 重量
     */
    @TableField("goods_weight")
    private String goodsWeight;

    /**
     * 库存重量
     */
    @TableField("stock_weight")
    private String stockWeight;

    /**
     * 体积
     */
    @TableField("goods_volume")
    private String goodsVolume;

    /**
     * 库存体积
     */
    @TableField("stock_volume")
    private String stockVolume;

    /**
     * 单价
     */
    @TableField("goods_price")
    private String goodsPrice;

    /**
     * 金额
     */
    @TableField("stock_money")
    private String stockMoney;

    /**
     * 批次
     */
    @TableField("batch")
    private String batch;

    /**
     * 生产日期
     */
    @TableField("detailed_date")
    private String detailedDate;

    /**
     * 保质期
     */
    @TableField("goods_warranty")
    private String goodsWarranty;

    /**
     * 入库日期
     */
    @TableField("put_date")
    private String putDate;

    /**
     * 发货客户id
     */
    @TableField("set_unit_id")
    private Long setUnitId;

    /**
     * 发货客户
     */
    @TableField("set_unit")
    private String setUnit;

    /**
     * 调入时间
     */
    @TableField("transfer_time")
    private Date transferTime;

    /**
     * v1
     */
    @TableField("v1")
    private String v1;

    /**
     * v2
     */
    @TableField("v2")
    private String v2;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 交付id
     */
    @TableField("deliver_id")
    private Long deliverId;
    /**
     * 拣货单号
     */
    @TableField("storage_number")
    private String storageNumber;

    /**
     * 基本数量
     */
    @TableField("jiben_num")
    private BigDecimal jibenNum;

    @Override
    public String toString() {
        return "HxStorageStock{" +
        "id=" + id +
        ", stockState=" + stockState +
        ", operateId=" + operateId +
        ", operateName=" + operateName +
        ", customerId=" + customerId +
        ", customerName=" + customerName +
        ", warehouseId=" + warehouseId +
        ", warehouseName=" + warehouseName +
        ", areaId=" + areaId +
        ", areaName=" + areaName +
        ", areaNumber=" + areaNumber +
        ", positionId=" + positionId +
        ", positionNumber=" + positionNumber +
        ", trayId=" + trayId +
        ", trayNumber=" + trayNumber +
        ", goodsId=" + goodsId +
        ", goodsName=" + goodsName +
        ", goodsNumber=" + goodsNumber +
        ", goodsPcode69=" + goodsPcode69 +
        ", goodsSpecs=" + goodsSpecs +
        ", goodsBigtype=" + goodsBigtype +
        ", jibenUnit=" + jibenUnit +
        ", kcUnit=" + kcUnit +
        ", kcRate=" + kcRate +
        ", kcNum=" + kcNum +
        ", cgUnit=" + cgUnit +
        ", cgRate=" + cgRate +
        ", pfUnit=" + pfUnit +
        ", pfRate=" + pfRate +
        ", psUnit=" + psUnit +
        ", psRate=" + psRate +
        ", goodsWeight=" + goodsWeight +
        ", stockWeight=" + stockWeight +
        ", goodsVolume=" + goodsVolume +
        ", stockVolume=" + stockVolume +
        ", goodsPrice=" + goodsPrice +
        ", stockMoney=" + stockMoney +
        ", batch=" + batch +
        ", detailedDate=" + detailedDate +
        ", goodsWarranty=" + goodsWarranty +
        ", setUnitId=" + setUnitId +
        ", setUnit=" + setUnit +
        ", v1=" + v1 +
        ", v2=" + v2 +
        ", deptId=" + deptId +
        ", deliverId=" + deliverId +
                ", storageNumber=" + storageNumber +
        "}";
    }
}
